﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Antioch.Base
{

    [Jemgine.Engine.Node, Jemgine.Engine.Category("Antioch System")]
    public class GameOver : Jemgine.Data.ScriptNode
    {
        public GameOver()
        {
            AddInput("Fire", null);
        }

        public override void FireTerminal(int InputID, Jemgine.Data.ScriptPayload Payload)
        {
            GameStateModule Module = Sim.GetModule<GameStateModule>();
            if (Module != null) Module.Gameover();
        }
    }
}